package com.situ.dao;

import com.situ.entity.Category;
import com.situ.entity.Type;
import com.situ.util.DBUtil;

import java.util.List;

/**
 * @author yangkx
 * @create 2023-09-09-9:39
 */
public class TypeDao {

    //发请求去查分类数据
    public List<Type> all() {
        String sql = "select * from type";
        return DBUtil.executeDQL(sql, Type.class);
    }
}
